home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2004-135.nasl < prev    next >
Text File  |  2005-01-14  |  8KB  |  297 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2004:135
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(15740);
  12.  script_version ("$Revision: 1.1 $");
  13.  script_cve_id("CAN-2004-0942");
  14.  
  15.  name["english"] = "MDKSA-2004:135: apache2";
  16.  
  17.  script_name(english:name["english"]);
  18.  
  19.  desc["english"] = "
  20. The remote host is missing the patch for the advisory MDKSA-2004:135 (apache2).
  21.  
  22.  
  23.  
  24. A vulnerability in apache 2.0.35-2.0.52 was discovered by Chintan Trivedi; he
  25. found that by sending a large amount of specially- crafted HTTP GET requests, a
  26. remote attacker could cause a Denial of Service on the httpd server. This
  27. vulnerability is due to improper enforcement of the field length limit in the
  28. header-parsing code.
  29.  
  30. The updated packages have been patched to prevent this problem.
  31.  
  32.  
  33.  
  34. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2004:135
  35. Risk factor : High";
  36.  
  37.  
  38.  
  39.  script_description(english:desc["english"]);
  40.  
  41.  summary["english"] = "Check for the version of the apache2 package";
  42.  script_summary(english:summary["english"]);
  43.  
  44.  script_category(ACT_GATHER_INFO);
  45.  
  46.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  47.  family["english"] = "Mandrake Local Security Checks";
  48.  script_family(english:family["english"]);
  49.  
  50.  script_dependencies("ssh_get_info.nasl");
  51.  script_require_keys("Host/Mandrake/rpm-list");
  52.  exit(0);
  53. }
  54.  
  55. include("rpm.inc");
  56. if ( rpm_check( reference:"apache2-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  57. {
  58.  security_hole(0);
  59.  exit(0);
  60. }
  61. if ( rpm_check( reference:"apache2-common-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  62. {
  63.  security_hole(0);
  64.  exit(0);
  65. }
  66. if ( rpm_check( reference:"apache2-devel-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  67. {
  68.  security_hole(0);
  69.  exit(0);
  70. }
  71. if ( rpm_check( reference:"apache2-manual-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  72. {
  73.  security_hole(0);
  74.  exit(0);
  75. }
  76. if ( rpm_check( reference:"apache2-mod_cache-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  77. {
  78.  security_hole(0);
  79.  exit(0);
  80. }
  81. if ( rpm_check( reference:"apache2-mod_dav-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  82. {
  83.  security_hole(0);
  84.  exit(0);
  85. }
  86. if ( rpm_check( reference:"apache2-mod_deflate-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  87. {
  88.  security_hole(0);
  89.  exit(0);
  90. }
  91. if ( rpm_check( reference:"apache2-mod_disk_cache-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  92. {
  93.  security_hole(0);
  94.  exit(0);
  95. }
  96. if ( rpm_check( reference:"apache2-mod_file_cache-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  97. {
  98.  security_hole(0);
  99.  exit(0);
  100. }
  101. if ( rpm_check( reference:"apache2-mod_ldap-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  102. {
  103.  security_hole(0);
  104.  exit(0);
  105. }
  106. if ( rpm_check( reference:"apache2-mod_mem_cache-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  107. {
  108.  security_hole(0);
  109.  exit(0);
  110. }
  111. if ( rpm_check( reference:"apache2-mod_proxy-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  112. {
  113.  security_hole(0);
  114.  exit(0);
  115. }
  116. if ( rpm_check( reference:"apache2-mod_ssl-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  117. {
  118.  security_hole(0);
  119.  exit(0);
  120. }
  121. if ( rpm_check( reference:"apache2-modules-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  122. {
  123.  security_hole(0);
  124.  exit(0);
  125. }
  126. if ( rpm_check( reference:"apache2-source-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  127. {
  128.  security_hole(0);
  129.  exit(0);
  130. }
  131. if ( rpm_check( reference:"libapr0-2.0.48-6.8.100mdk", release:"MDK10.0", yank:"mdk") )
  132. {
  133.  security_hole(0);
  134.  exit(0);
  135. }
  136. if ( rpm_check( reference:"apache2-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  137. {
  138.  security_hole(0);
  139.  exit(0);
  140. }
  141. if ( rpm_check( reference:"apache2-common-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  142. {
  143.  security_hole(0);
  144.  exit(0);
  145. }
  146. if ( rpm_check( reference:"apache2-devel-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  147. {
  148.  security_hole(0);
  149.  exit(0);
  150. }
  151. if ( rpm_check( reference:"apache2-manual-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  152. {
  153.  security_hole(0);
  154.  exit(0);
  155. }
  156. if ( rpm_check( reference:"apache2-mod_cache-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  157. {
  158.  security_hole(0);
  159.  exit(0);
  160. }
  161. if ( rpm_check( reference:"apache2-mod_dav-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  162. {
  163.  security_hole(0);
  164.  exit(0);
  165. }
  166. if ( rpm_check( reference:"apache2-mod_deflate-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  167. {
  168.  security_hole(0);
  169.  exit(0);
  170. }
  171. if ( rpm_check( reference:"apache2-mod_disk_cache-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  172. {
  173.  security_hole(0);
  174.  exit(0);
  175. }
  176. if ( rpm_check( reference:"apache2-mod_file_cache-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  177. {
  178.  security_hole(0);
  179.  exit(0);
  180. }
  181. if ( rpm_check( reference:"apache2-mod_ldap-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  182. {
  183.  security_hole(0);
  184.  exit(0);
  185. }
  186. if ( rpm_check( reference:"apache2-mod_mem_cache-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  187. {
  188.  security_hole(0);
  189.  exit(0);
  190. }
  191. if ( rpm_check( reference:"apache2-mod_proxy-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  192. {
  193.  security_hole(0);
  194.  exit(0);
  195. }
  196. if ( rpm_check( reference:"apache2-modules-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  197. {
  198.  security_hole(0);
  199.  exit(0);
  200. }
  201. if ( rpm_check( reference:"apache2-source-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  202. {
  203.  security_hole(0);
  204.  exit(0);
  205. }
  206. if ( rpm_check( reference:"apache2-worker-2.0.50-7.2.101mdk", release:"MDK10.1", yank:"mdk") )
  207. {
  208.  security_hole(0);
  209.  exit(0);
  210. }
  211. if ( rpm_check( reference:"apache2-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  212. {
  213.  security_hole(0);
  214.  exit(0);
  215. }
  216. if ( rpm_check( reference:"apache2-common-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  217. {
  218.  security_hole(0);
  219.  exit(0);
  220. }
  221. if ( rpm_check( reference:"apache2-devel-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  222. {
  223.  security_hole(0);
  224.  exit(0);
  225. }
  226. if ( rpm_check( reference:"apache2-manual-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  227. {
  228.  security_hole(0);
  229.  exit(0);
  230. }
  231. if ( rpm_check( reference:"apache2-mod_cache-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  232. {
  233.  security_hole(0);
  234.  exit(0);
  235. }
  236. if ( rpm_check( reference:"apache2-mod_dav-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  237. {
  238.  security_hole(0);
  239.  exit(0);
  240. }
  241. if ( rpm_check( reference:"apache2-mod_deflate-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  242. {
  243.  security_hole(0);
  244.  exit(0);
  245. }
  246. if ( rpm_check( reference:"apache2-mod_disk_cache-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  247. {
  248.  security_hole(0);
  249.  exit(0);
  250. }
  251. if ( rpm_check( reference:"apache2-mod_file_cache-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  252. {
  253.  security_hole(0);
  254.  exit(0);
  255. }
  256. if ( rpm_check( reference:"apache2-mod_ldap-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  257. {
  258.  security_hole(0);
  259.  exit(0);
  260. }
  261. if ( rpm_check( reference:"apache2-mod_mem_cache-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  262. {
  263.  security_hole(0);
  264.  exit(0);
  265. }
  266. if ( rpm_check( reference:"apache2-mod_proxy-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  267. {
  268.  security_hole(0);
  269.  exit(0);
  270. }
  271. if ( rpm_check( reference:"apache2-mod_ssl-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  272. {
  273.  security_hole(0);
  274.  exit(0);
  275. }
  276. if ( rpm_check( reference:"apache2-modules-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  277. {
  278.  security_hole(0);
  279.  exit(0);
  280. }
  281. if ( rpm_check( reference:"apache2-source-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  282. {
  283.  security_hole(0);
  284.  exit(0);
  285. }
  286. if ( rpm_check( reference:"libapr0-2.0.47-6.12.92mdk", release:"MDK9.2", yank:"mdk") )
  287. {
  288.  security_hole(0);
  289.  exit(0);
  290. }
  291. if (rpm_exists(rpm:"apache2-", release:"MDK10.0")
  292.  || rpm_exists(rpm:"apache2-", release:"MDK10.1")
  293.  || rpm_exists(rpm:"apache2-", release:"MDK9.2") )
  294. {
  295.  set_kb_item(name:"CAN-2004-0942", value:TRUE);
  296. }
  297.